home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 033a / mxtms_10.zip / MAXTIME.H < prev    next >
C/C++ Source or Header  |  1991-05-25  |  2KB  |  72 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /*    Maxtime.h    Version 1.0    By Craig Derouen                          */
  4. /*                                                                          */
  5. /****************************************************************************/
  6.  
  7.  
  8. #include <stdio.h>
  9. #include <io.h>
  10. #include <conio.h>
  11. #include <ctype.h>
  12. #include <string.h>
  13. #include <stdlib.h>
  14. #include <fcntl.h>
  15. #include <share.h>
  16. #include <dos.h>
  17. #include <bios.h>
  18. #include <direct.h>
  19. #include <errno.h>
  20. #include <malloc.h>
  21. #include <time.h>
  22. #include <sys\timeb.h>
  23. #include <sys\types.h>
  24. #include <sys\stat.h>
  25.  
  26. #include "compiler.h"
  27. #include "prog.h"
  28. #include "max.h"
  29.  
  30. #define  Version 1.00
  31. #define  TRUE  1
  32. #define  FALSE 0
  33.  
  34. #define  IDLETIME 3        /* # of minutes to allow for idle input */
  35.  
  36. /* Error codes */
  37. #define  BADALLOC    1
  38. #define  BADEXEC     2
  39. #define  FILEOPEN    3
  40. #define  FILECREATE  4
  41. #define  FILEWRITE   5
  42. #define  DROPCARRIER 6
  43. #define  USERIDLE    7
  44.  
  45. /* Text style attribute defines */
  46.  
  47. #define STD_TEXT        0
  48. #define HILITE_TEXT     1
  49. #define MENU_KEY        2
  50. #define TIME_LEFT       3
  51. #define PROMPT_TEXT     4
  52. #define ATTN_TEXT       5
  53.  
  54. struct user_cfg {
  55.    byte           name[36];       /* Same as in User file */
  56.    byte           isused;         /* 1 if used, 0 if not */
  57.    time_t         lasttime;      /* Unix compat time of last logon */
  58.    unsigned long  banktime;        /* # of minutes reserved for user */
  59.    word           deposits;          /* # of times we have made deposits */
  60.    word           withdraws;         /* # of times we have made withdrawals */
  61.    word           dailydep;        /* Amount of time we have deposited TODAY */
  62.    word           dailywtd;        /* Amount of time we have withdrawn TODAY */
  63.    word           calls;           /* # of minutes reserved for user */
  64.    word           flags;         /* Various user flags */
  65.    word           timetoday;        /* Amount of time used today */
  66.    byte  rsvd[8];
  67. };
  68.  
  69. /* User Flag defines */
  70.  
  71. #include "protos.h"
  72.